package org.itboys.store.constant;
/**
 * 常量定义
 * @author weisky
 *
 */
public interface ProductConstant {
	
	public static final String PATH_SPLIT = "/";

	/**
	 * ossCdn 的二级域名前缀 (这种东西应该配在spring里 不应该写死在这里)
	 */
	public String OSS_URL_PREFIX = "http://fuzion.oss-cn-shanghai.aliyuncs.com/";

	public static final String CACHE_CATEGORY = "categorys";//分类缓存key
	public static final String CACHE_BRAND = "brands";//品牌缓存key
	public static final String CACHE_STORE_LIMIT = "store_limit";//库存临界值缓存key
	public static final String CACHE_MAN_POST = "man_post";//满减包邮
	public static final String CACHE_POST_FEE = "post_fee";//邮费
	public static final String CACHE_SCORE_PRODUCT_AMOUNT_SCALE = "score_product_amount_scale";//积分产品提成比例


	public static final String PRICE_SCALE_KEY = "price_scale";// 调价比例

	public class WeixinPay{
		public static final String APPID = "";//微信appid
		public static final String MCHID = "";//微信商户号
		public static final String TRADETYPE = "JSAPI";//交易类型 trade_type=JSAPI表示H5页面发起调用 必须  JSAPI APP NATIVE(扫码支付)
		public static final String NOTIFYURL = "/store/weixin/order/weixinNotify";//异步回调链接
		public static final String NOTIFYURL_SINGLE = "/store/weixin/order/weixinNotifySingle";//异步回调链接
		public static final String KEY = "weicangwangluo123456789weicangwa";//支付秘钥
	}

	/**
	 * 订单相关的常量
	 */
	public class OrderStatic{
		/*********订单状态**********/
		public static final Integer ORDER_STATUS_CREATE = 0; 					//等待买家付款
		public static final Integer ORDER_STATUS_PAY = 1;                   	//买家已付款
		public static final Integer ORDER_STATUS_SEND = 2;						//卖家已发货
		public static final Integer ORDER_STATUS_SUCCESS = 3;					//交易成功
		public static final Integer ORDER_STATUS_CLOSE = 4;				    //交易关闭
		public static final Integer ORDER_STATUS_BACK = 5;						//退款中的订单
		public static final Integer ORDER_STATUS_CANCLE = 6;					//交易取消
		public static final Integer ORDER_STATUS_DELETE = 7;					//已退款
		public static final Integer ORDER_STATUS_LOSE_EFFICACY=8;					//正在退货
		public static final Integer ORDER_STATUS_LOSE_SUCCESS=9;					//退货成功
		/*********支付方式**********/
		public static final Integer PAY_BANK = 0;  //银行卡
		public static final Integer PAY_WX = 1;  //微信支付
		public static final Integer PAY_ALI = 2;  //支付宝
		public static final Integer PAY_BEAN = 3;  //能量豆支付
		/*********支付回调**********/
		public static final String WXPAY_NOTIFY_URL = "/weixin/order/weixinNotify";
	}

	/*
	 * 分类
	 */
	class Category{
		public static int IMG_APP = 0;//app
		public static int IMG_WEIXIN = 1;//微信
		public static int IMG_LIST = 2;//列表
	}
	
	/*
	 * 分类下的规格特征
	 */
	class CategorySpec{
		public static int SHOWTYPE_TEXT = 1;//文字形式展现
		public static int SHOWTYPE_IMG = 2;//图片形式展现
	}
	
	/*
	 * 商品状态
	 */
	class ProductStatus{
		public static int PRODUCT_CHECKED = 1;//待平台审核
		public static int PRODUCT_PUT = 2;//上架
		public static int PRODUCT_DOWN = 3;//下架
		public static int PRODUCT_REMOVE = 4;//废弃
		public static int PRODUCT_DELETE = 5;//永久删除
		public static int PRODUCT_REJECT = 6;//审核拒绝
	}
	
	static class ImgPath{
		public static final String  OSS_PATH = "imgs";//OSS上传到的文件夹名称
	}
	
}
